import os.path

import numpy as np


if __name__ == "__main__":
    index = 243
    path = "/home/ubuntu/Ascend/phase2_20221231/results/pt2cann/pytorch_gpu/torch.sum/20221230_051708"
    source_result_path = os.path.join(path, "torch.sum_%d_results.npz" % index)
    path = "/home/ubuntu/Ascend/phase2_20221231/results/pt2cann/om/torch.sum/20221230_051708"
    follow_result_path = os.path.join(path, "torch.sum_%d_results.npz" % index)

    print(np.load(source_result_path)["torch.sum_%d" % index])
    print(np.load(follow_result_path)["torch.sum_%d" % index])


